package com.fs.cv.pojo.pojoview;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>班级管理实体类</p>
 *
 * @author : 苏明友
 * @date : 2020-10-10 11:30
 **/
public class ClassInfo {
    //班级id
    private int classId;
    //专业id
    private int departmentId;
    //班级名字
    private String className;
    //班主任名字
    private String headmasterName;
    //教务主任名字
    private String registrarName;

    //班级创建时间
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date creationTime;

    //班级创建时的人数
    private int creatNumber;
    //班级总人数
    private int studentNumber;
    //班级状态
    private int classDeleted;

    public ClassInfo() {
    }

    public ClassInfo(int classId, int departmentId, String className, String headmasterName, String registrarName, Date creationTime, int creatNumber, int studentNumber, int classDeleted) {
        this.classId = classId;
        this.departmentId = departmentId;
        this.className = className;
        this.headmasterName = headmasterName;
        this.registrarName = registrarName;
        this.creationTime = creationTime;
        this.creatNumber = creatNumber;
        this.studentNumber = studentNumber;
        this.classDeleted = classDeleted;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public int getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(int departmentId) {
        this.departmentId = departmentId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getHeadmasterName() {
        return headmasterName;
    }

    public void setHeadmasterName(String headmasterName) {
        this.headmasterName = headmasterName;
    }

    public String getRegistrarName() {
        return registrarName;
    }

    public void setRegistrarName(String registrarName) {
        this.registrarName = registrarName;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public int getCreatNumber() {
        return creatNumber;
    }

    public void setCreatNumber(int creatNumber) {
        this.creatNumber = creatNumber;
    }

    public int getStudentNumber() {
        return studentNumber;
    }

    public void setStudentNumber(int studentNumber) {
        this.studentNumber = studentNumber;
    }

    public int getClassDeleted() {
        return classDeleted;
    }

    public void setClassDeleted(int classDeleted) {
        this.classDeleted = classDeleted;
    }

    @Override
    public String toString() {
        return "ClassInfo{" +
                "classId=" + classId +
                ", departmentId=" + departmentId +
                ", className='" + className + '\'' +
                ", headmasterName='" + headmasterName + '\'' +
                ", registrarName='" + registrarName + '\'' +
                ", creationTime=" + creationTime +
                ", creatNumber=" + creatNumber +
                ", studentNumber=" + studentNumber +
                ", classDeleted=" + classDeleted +
                '}';
    }
}
